package com.blb.mybatis.service.impl;

import com.blb.mybatis.entity.GoodsAddress;
import com.blb.mybatis.mapper.GoodsAddressMapper;
import com.blb.mybatis.service.GoodsAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsAddressServiceImpl implements GoodsAddressService {

    @Autowired
    private GoodsAddressMapper goodsAddressMapper;

    public List<GoodsAddress> selectAll() {
        return goodsAddressMapper.selectAll();

    }

    public void delGoodsAddress(Long id) {
        goodsAddressMapper.delGoodsAddress(id);
    }

    public void addGoodsAddress(String province, String city, String address) {
        goodsAddressMapper.addGoodsAddress(province, city, address);
    }

    public void updateGoodsAddress(GoodsAddress goodsAddress) {
        goodsAddressMapper.updateGoodsAddress(goodsAddress);
    }
}
